const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 返回用户 token
  avatar: state => state.user.userInfo.staffPhoto,
  // name: state => state.user.name
  name: state => state.user.userInfo.username, // 返回用户名字
  companyId: state => state.user.userInfo.companyId // 公司 ID
}
export default getters
